package com.google.coffeeshop.gui.desktop;

import javax.swing.JFrame;

public abstract class AbstractBaseFrame extends JFrame {
	private static final long serialVersionUID = 1L;

	protected AbstractBaseFrame(String title) {
		super.setTitle(title);
		super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public void maximizeScreen() {
		this.setExtendedState(JFrame.MAXIMIZED_BOTH);
	}
	
	public void restoreScreen() {
		this.setExtendedState(JFrame.NORMAL);
	}
	
	public void refreshGUI() {
		this.validate();
		this.repaint();
	}
	public void disposeFrame() {
		this.dispose();
	}
	
}
